package com.bean;

/**
 * @ClassName User
 * @Desc 用户类
 * @Author xiaoding
 * @Date 2021/1/10 15:52
 * @Version 1.0
 */

public class User {
    //功能属性
    private int uId;
    private String account;
    private String pws;
    private String uName;
    private String email;
    private int count;
    private int age;
    private String sex;

    //构造方法
    public User() {
    }
    public User(int uId, String account, String pws, String uName, String email, int count, int age, String sex) {
        this.uId = uId;
        this.account = account;
        this.pws = pws;
        this.uName = uName;
        this.email = email;
        this.count = count;
        this.age = age;
        this.sex = sex;
    }
    public User(String account, String pws, String uName, String email, int count, int age, String sex) {
        this.account = account;
        this.pws = pws;
        this.uName = uName;
        this.email = email;
        this.count = count;
        this.age = age;
        this.sex = sex;
    }

    public User(String account, String pws) {
        this.account = account;
        this.pws = pws;
    }

    //get、set方法
    public int getuId() {
        return uId;
    }

    public String getAccount() {
        return account;
    }

    public String getPws() {
        return pws;
    }

    public String getuName() {
        return uName;
    }

    public String getEmail() {
        return email;
    }

    public int getCount() {
        return count;
    }

    public int getAge() {
        return age;
    }

    public String getSex() {
        return sex;
    }

    public void setuId(int uId) {
        this.uId = uId;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public void setPws(String pws) {
        this.pws = pws;
    }

    public void setuName(String uName) {
        this.uName = uName;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "User{" +
                "uId=" + uId +
                ", account='" + account + '\'' +
                ", pws='" + pws + '\'' +
                ", uName='" + uName + '\'' +
                ", email='" + email + '\'' +
                ", count=" + count +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                '}';
    }
}
